home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Internet
/
Collection of Internet.iso
/
infosrvr
/
doc
/
www_talk.arc
/
000086_RASHTY@hujivms.bitnet _Mon Apr 13 17:28:35 1992.msg
< prev
next >
Wrap
Internet Message Format
|
1992-11-30
|
3KB
Return-Path: <RASHTY@hujivms.bitnet>
Received: from dxmint.cern.ch by nxoc01.cern.ch (NeXT-1.0 (From Sendmail 5.52)/NeXT-2.0)
id AA20004; Mon, 13 Apr 92 17:28:35 GMT+0200
Received: by dxmint.cern.ch (dxcern) (5.57/3.14)
id AA08959; Mon, 13 Apr 92 17:28:22 +0200
Message-Id: <9204131528.AA08959@dxmint.cern.ch>
Received: from CEARN.cern.ch by CEARN.cern.ch (IBM VM SMTP V2R1)
with BSMTP id 8169; Mon, 13 Apr 92 17:28:06 SET
Received: from HUJIVMS (RASHTY) by CEARN.cern.ch (Mailer R2.07B) with BSMTP id
1105; Mon, 13 Apr 92 17:28:05 SET
Received: by HUJIVMS (HUyMail-V6j); Mon, 13 Apr 92 18:28:03 +0300
Date: Mon, 13 Apr 92 18:28 +0300
From: Dudu Rashty +972-2-584848 <RASHTY@hujivms.bitnet>
To: www-talk@nxoc01.cern.ch
Subject: few bugs in www
Hi,
when i have tried to create a telnet session than
1) it used the rlogin instead of the telnet
2) the way the rlogin is used is wrong.. it sends the command
RLOGINtelnet /username= ... WITHOUT THE HOSTNAME
C++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++C
HTACCESS.C as it is now
C++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++C
BOOL rlogin = strcmp(access, "rlogin");
.
.
.
if (!rlogin) { /* telnet */
if (user) printf("When you are connected, log in as %s\n", user);
sprintf(command, "TELNET %s%s %s",
port ? "/PORT=" : "",
port ? port : "",
hostname);
} else {
sprintf(command, "RLOGIN%s%s%s%s %s", access,
user ? "/USERNAME=" : "",
user ? user : "",
port ? "/PORT=" : "",
port ? port : "",
hostname);
}
if (TRACE) fprintf(stderr, "HTaccess: Command is: %s\n", command);
system(command);
return HT_NO_DATA; /* Ok - it was done but no data */
C++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++C
correct code is :
C++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++C
HTACCESS.C
BOOL rlogin = strcmp(access, "rlogin");
.
.
.
if (rlogin) { /* telnet */
if (user) printf("When you are connected, log in as %s\n", user);
sprintf(command, "TELNET %s%s %s",
port ? "/PORT=" : "",
port ? port : "",
hostname);
} else {
sprintf(command, "RLOGIN%s%s%s%s %s",
user ? "/USERNAME=" : "",
user ? user : "",
port ? "/PORT=" : "",
port ? port : "",
hostname);
}
if (TRACE) fprintf(stderr, "HTaccess: Command is: %s\n", command);
system(command);
return HT_NO_DATA; /* Ok - it was done but no data */
C++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++C
thanks
__o o__
_ \<,_ _.>/ _
(_)/ (_) (_) \(_)
d u d u
Hebrew University
Computation Center
Jerusalem, Israel